/**
 * Created by Administrator on 2017/10/17.
 */
var mongoose = require("mongoose");
var mongoosePaginate = require('mongoose-paginate');

var schema = new mongoose.Schema({
    title:String,
    content:String,
    cateId:String,
    author:String,
    comNum:Number,
    data:{type:Date,default:Date.now},
    thumb:{}
});
schema.plugin(mongoosePaginate);

var news = mongoose.model('News',schema,"news");

module.exports= news;